package com.ruoyi.formwork.service.impl;



import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.formwork.domain.WarnFormWork;
import com.ruoyi.formwork.mapper.WarnFormWorkMapper;
import com.ruoyi.formwork.service.WarnFormWorkService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WarnFormWorkServiceImpl extends ServiceImpl<WarnFormWorkMapper, WarnFormWork> implements WarnFormWorkService {

    @Resource
    private WarnFormWorkMapper warmFormWorkMapper;



    @Override
    public List<WarnFormWork> queryWarnFormWork(WarnFormWork warnFormWork) {
        return warmFormWorkMapper.queryWarnFormWork(warnFormWork);
    }

    @Override
    public boolean deleteWarnFormWork(WarnFormWork warnFormWork) {
        return warmFormWorkMapper.deleteWarnFormWork(warnFormWork.getId())>0;
    }
}
